package Test0102;

import java.util.Arrays;

public class Book {
    String Bookname;
    String Authorname;
    boolean state;

    public Book() {
    }

    public Book(String bookname, String authorname, boolean state) {
        Bookname = bookname;
        Authorname = authorname;
        this.state = state;
    }

    public String getBookname() {
        return Bookname;
    }

    public void setBookname(String bookname) {
        Bookname = bookname;
    }

    public String getAuthorname() {
        return Authorname;
    }

    public void setAuthorname(String authorname) {
        Authorname = authorname;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Book{" +
                "Bookname='" + Bookname + '\'' +
                ", Authorname='" + Authorname + '\'' +
                ", state=" + state +
                '}';
    }
}
